package com.smfx.yxt.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smfx.yxt.daoSqlserver.ClassGroupChatMapper;
import com.smfx.yxt.model.ClassGroupChat;
import com.smfx.yxt.page.Page;
import com.smfx.yxt.service.IClassGroupChatService;
import com.smfx.yxt.view.ClassChatReadView;
import com.smfx.yxt.view.ClassGroupChatView;

@Service("classGroupChatService")
public class ClassGroupChatServiceImpl implements IClassGroupChatService {

	@Autowired
	private ClassGroupChatMapper classGroupChatMapper;
	
	@Override
	public ClassGroupChat insertSelective(ClassGroupChat record) {
		classGroupChatMapper.insertSelective(record);
		return record;
	}

	@Override
	public int updateByPrimaryKeySelective(ClassGroupChat record) {
		return classGroupChatMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<ClassGroupChatView> selectListByPage(Page<ClassGroupChatView> page) {
		return classGroupChatMapper.selectListByPage(page);
	}

	@Override
	public List<ClassChatReadView> selectNoReadGroupChat(List<ClassChatReadView> list) {
		return classGroupChatMapper.selectNoReadGroupChat(list);
	}

	@Override
	public List<ClassChatReadView> selectNoReadPrivateChat(List<ClassChatReadView> list) {
		return classGroupChatMapper.selectNoReadPrivateChat(list);
	}

	@Override
	public List<ClassChatReadView> selectClazzChatList(Map<String, Object> map) {
		return classGroupChatMapper.selectClazzChatList(map);
	}

}
